Last updated: 2021-08-20

Checks: 6 1

Knit directory: factor_analysis/

This reproducible R Markdown analysis was created with workflowr (version 1.6.2). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.


Great! Since the R Markdown file has been committed to the Git repository, you know the exact version of the code that produced these results.

Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it’s best to always run the code in an empty environment.

The command set.seed(20200623) was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.

Great job! Recording the operating system, R version, and package versions is critical for reproducibility.

Nice! There were no cached chunks for this analysis, so you can be confident that you successfully produced the results during this run.

Using absolute paths to the files within your workflowr project makes it difficult for you and others to run your code on a different machine. Change the absolute path(s) below to the suggested relative path(s) to make your code more reproducible.

absolute relative
/project2/xinhe/xsun/website/factor_analysis/output/ks_acat_gtex_plier_wb.rdata output/ks_acat_gtex_plier_wb.rdata
/project2/xinhe/xsun/website/factor_analysis/output/summary_resampling_pwy_gtex_plier_wb.rdata output/summary_resampling_pwy_gtex_plier_wb.rdata
/project2/xinhe/xsun/website/factor_analysis/output/reverse_check_plier_wb_mbe_98lvs.rdata output/reverse_check_plier_wb_mbe_98lvs.rdata
/project2/xinhe/xsun/website/factor_analysis/output/info_table_annot_d1k_plier_wb_98lvs.rdata output/info_table_annot_d1k_plier_wb_98lvs.rdata
/project2/xinhe/xsun/website/factor_analysis/output/coloc_sum_500kb_gtex_plier.rdata output/coloc_sum_500kb_gtex_plier.rdata
/project2/xinhe/xsun/website/factor_analysis/output/coloc_sum_1000kb_gtex_plier.rdata output/coloc_sum_1000kb_gtex_plier.rdata
/project2/xinhe/xsun/website/factor_analysis/output/lv46_plier_wb_all_98lvs.rdata output/lv46_plier_wb_all_98lvs.rdata
/project2/xinhe/xsun/website/factor_analysis/output/lv46_plier_wb_top025_98lvs.rdata output/lv46_plier_wb_top025_98lvs.rdata
/project2/xinhe/xsun/website/factor_analysis/output/lv32_plier_wb_all_98lvs.rdata output/lv32_plier_wb_all_98lvs.rdata
/project2/xinhe/xsun/website/factor_analysis/output/lv32_plier_wb_top025_98lvs.rdata output/lv32_plier_wb_top025_98lvs.rdata
/project2/xinhe/xsun/website/factor_analysis/output/lv73_plier_wb_all_98lvs.rdata output/lv73_plier_wb_all_98lvs.rdata
/project2/xinhe/xsun/website/factor_analysis/output/lv73_plier_wb_top025_98lvs.rdata output/lv73_plier_wb_top025_98lvs.rdata
/project2/xinhe/xsun/website/factor_analysis/output/lv35_plier_wb_all_98lvs.rdata output/lv35_plier_wb_all_98lvs.rdata
/project2/xinhe/xsun/website/factor_analysis/output/lv35_plier_wb_top025_98lvs.rdata output/lv35_plier_wb_top025_98lvs.rdata

Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.

The results in this page were generated with repository version 2419ce0. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.

Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:


Ignored files:
    Ignored:    .RData
    Ignored:    .Rhistory
    Ignored:    analysis/.Rhistory
    Ignored:    output/.Rhistory

Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.


These are the previous versions of the repository in which changes were made to the R Markdown (analysis/gtex_plier_d1k.Rmd) and HTML (docs/gtex_plier_d1k.html) files. If you’ve configured a remote Git repository (see ?wflow_git_remote), click on the hyperlinks in the table below to view the files as they were in that past version.

File Version Author Date Message
Rmd 2419ce0 XSun 2021-08-20 update
html c9b0c09 XSun 2021-08-20 Build site.
Rmd ac230ec XSun 2021-08-20 update
Rmd 207cac1 XSun 2021-08-10 update
html b4fa8aa XSun 2021-08-09 Build site.
Rmd e05a8f0 XSun 2021-08-09 update
html ba5e215 XSun 2021-08-09 Build site.
Rmd e61a810 XSun 2021-08-09 update
html cb4815f XSun 2021-08-08 Build site.
Rmd 7fdf34d XSun 2021-08-08 wflow_publish(“analysis/gtex_plier_d1k.Rmd”)
html 3da9e35 XSun 2021-08-08 Build site.
Rmd 99de2c5 XSun 2021-08-08 update
html 8238230 XSun 2021-07-29 Build site.
Rmd 58fc083 XSun 2021-07-29 update
html 9e8e318 XSun 2021-06-29 Build site.
Rmd dc9d56e XSun 2021-06-29 wflow_publish(“analysis/gtex_plier_d1k.Rmd”)
html 075d854 XSun 2021-06-29 Build site.
Rmd c87de2a XSun 2021-06-28 update
html 3b63539 XSun 2021-06-28 Build site.
Rmd 4c43bc4 XSun 2021-06-28 update
html 7e32b0f XSun 2021-06-24 Build site.
Rmd 3a515b5 XSun 2021-06-24 wflow_publish(c(“analysis/gtex_plier_d1k.Rmd”, “analysis/thesis.Rmd”))

Overview

We used the PLIER R package with the collection of 12999 gene sets as a prior information matrix priorMat available in the package comprising canonical, immune and chemgen pathways from MSigDB (same with the eLife paper)

We used 26 immune and blood cell traits in this part, they are: “mch”,“mchc”,“mcv”,“rdw”,“ret”,“baso”,“plt”,“pct”,“pdw”,“mpv”,“hct”,“hgb”,“ret”,“mono”,“T1D”, “EUR.IBD”,“EUR.UC”,“EUR.CD”,“ukb.allasthma”,“eo”,“wbc”,“rbc”,“myeloid_wbc”,“gran”,“lymph”,“neut”,“allergy”

We got 98 LVs.

Enrichment summary – computed from ACAT p-values for all pairs

We computed both ACAT p-values and K-S p-values. The p-values seem better (qqplot below). So the enrichments were computed using p-values.

The enrichment at p-value < 0.05 level is : **129/(2548*0.05) ==1.012559**

The enrichment at p-value < 0.01 level is : **31/(2548*0.01) ==1.216641**

The enrichment at p-value < 0.01 level is : **7/(2548*0.001) ==2.747253**

K-S and ACAT summary

Enrichment results

We have 2548 trait-factor pairs in total. 31 pairs have more than 2 SNPs with FDR <0.2.

There are 4 pairs show sign consistency (have p-values < 0.05 in resampling, 2.58 fold enrichment). There are 1 pairs at p-value < 0.01, 3.23 fold enrichment).

Reverse causality checking

For the pairs have p-value < 0.05 in resampling, we checked the effect size correlation could be due to reverse causality.

We first used all SNPs associated with traits(pval<5E-8). We computed the MBE estimator and the p-values of the estimator. When computing the IVW, we exchanged the beta.outcome and beta.exposure.

Then we removed the SNPs have FDR < 0.2, just used the remaining SNP to compute IVW and do the fitting.

**The suffix "_reverse" are the results for traits -> LV (using all candidate SNPs after LD Clumping), the suffix "_rremove" are the results for traits -> LV (using all candidate SNPs after LD Clumping but remove the SNPs have fdr < 0.2)**

SNP details

Effectsize plots

Colocalization results

For the SNPs above, we did colocalization analysis.

The method for colocalization analysis were described in 3.3

+-250kb from the target locus

Two plots for the locus has the highest PP4:

ret_lv73

ret_lv73_rs2523990

ret_lv73_rs10067881

EUR.UC_lv46

EUR.UC_lv46_rs1359946

EUR.UC_lv46_rs254559

rbc_lv32

rbc_lv32_rs17699658

rbc_lv32_rs13103322

ukb.allasthma_lv35

ukb.allasthma_lv35_rs61816761

ukb.allasthma_lv35_rs35621564

+-500kb from the target locus

ret_lv73

Plots for the locus has the highest PP4:

ret_lv73_rs2523990

ret_lv73_rs10067881

EUR.UC_lv46

EUR.UC_lv46_rs1359946

EUR.UC_lv46_rs254559

rbc_lv32

rbc_lv32_rs17699658

rbc_lv32_rs13103322

ukb.allasthma_lv35

LV35 has three related pathways reported by PLIER, including CHEMELLO_SOLEUS_VS_EDL_MYOFIBERS_UP, RICKMAN_HEAD_AND_NECK_CANCER_F, and CHEN_LVAD_SUPPORT_OF_FAILING_HEART_UP.

ukb.allasthma_lv35_rs61816761

ukb.allasthma_lv35_rs35621564

ORA Enrichment results

The method for ORA were described in 3.4

EUR.UC_wb_lv46

ALL genes have non-zero loadings (5146 genes)

Warning in instance$preRenderHook(instance): It seems your data is too big
for client-side DataTables. You may consider server-side processing: https://
rstudio.github.io/DT/server.html

Top 25% genes (1286 genes)

rbc_wb_lv32

ALL genes have non-zero loadings (6188 genes)

Warning in instance$preRenderHook(instance): It seems your data is too big
for client-side DataTables. You may consider server-side processing: https://
rstudio.github.io/DT/server.html

Top 25% genes (1547 genes)

ret_wb_lv73

LV73 has three related pathways report by PLIER, they are KEGG_VALINE_LEUCINE_AND_ISOLEUCINE_DEGRADATION, MIPS_55S_RIBOSOME_MITOCHONDRIAL, and HSIAO_LIVER_SPECIFIC_GENES.

ALL genes have non-zero loadings (5619 genes)

Top 25% genes (1405 genes)

ukb.allasthma_wb_lv35

ALL genes have non-zero loadings (5973 genes)

Warning in instance$preRenderHook(instance): It seems your data is too big
for client-side DataTables. You may consider server-side processing: https://
rstudio.github.io/DT/server.html

Top 25% genes (1493 genes)


sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Scientific Linux 7.4 (Nitrogen)

Matrix products: default
BLAS/LAPACK: /software/openblas-0.2.19-el7-x86_64/lib/libopenblas_haswellp-r0.2.19.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] workflowr_1.6.2

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.5        rstudioapi_0.11   whisker_0.3-2     knitr_1.30       
 [5] magrittr_1.5      R6_2.4.1          rlang_0.4.8       highr_0.8        
 [9] stringr_1.4.0     tools_3.6.1       DT_0.15           xfun_0.18        
[13] git2r_0.26.1      crosstalk_1.1.0.1 htmltools_0.5.0   ellipsis_0.3.1   
[17] rprojroot_1.3-2   yaml_2.2.1        digest_0.6.25     tibble_3.0.3     
[21] lifecycle_0.2.0   crayon_1.3.4      later_1.1.0.1     htmlwidgets_1.5.2
[25] vctrs_0.3.4       promises_1.1.1    fs_1.5.0          glue_1.4.2       
[29] evaluate_0.14     rmarkdown_1.13    stringi_1.5.3     compiler_3.6.1   
[33] pillar_1.4.6      backports_1.1.10  jsonlite_1.7.1    httpuv_1.5.1     
[37] pkgconfig_2.0.3